package com.android.jingweiapp.util;

import com.facebook.common.util.ByteConstants;

/**
 * Created by cwr on 2015/7/16 at 16:03.
 */
public class Contacts {

//    public static final String BASE_URL = "http://218.61.196.241/jxw/webservice.asmx";
//
//    public static final String BASE_PIC_URL = "http://218.61.196.241/jxw/";
//
//    public static final String THUMB_PIC_URL = "http://218.61.196.241/jxw/images/UploadImg/thumb/";


    public static final String BASE_URL = "http://222.74.213.236/webservice.asmx";

    public static final String BASE_PIC_URL = "http://222.74.213.236/";

    public static final String THUMB_PIC_URL = "http://222.74.213.236/images/UploadImg/thumb/";


    public static final class KEY {
        public static final String SEARCH_KEYWORD = "searchKey";
        public static final String KEY_TITLE = "title";
        public static final String KEY_FROM = "source";
        public static final String KEY_ID = "id";
        public static final String KEY_PATH = "path";
        public static final String KEY_DATE = "time";
        public static final String KEY_OBJECT = "object";
        public static final String KEY_PIC = "pic";
        public static final String KEY_TOP = "toutiao";
        public static final String KEY_LIST = "list";
        public static final String KEY_TYPE = "type";
        public static final String KEY_KEYWORD = "keyword";
        public static final String HOT_WORD = "content";
        public static final String DISTINCT = "distinct";
    }

    public static final class TYPE {
        public static final int TEXT_NEWS = 0;
        public static final int LEADER_INFO = 1;
        public static final int ORGAN_INFO_OFFICE = 2;
        public static final int ORGAN_INFO_DEP = 3;
        public static final int REPORT_CONTENT = 4;
        public static final int REGULATION_CONTENT = 5;
        public static final int NOTIFY_NEWS = 6;
        public static final int ANNOUNCE_NEWS = 7;

        public static final int TOPIC_NEWS = 8;
        public static final int SPECIAL_NEWS = 9;
        public static final int TOPIC_NEWS_SPECIAL = 10;
        public static final int SPECIAL_NEWS_SPECIAL = 11;
        public static final int ONLINEJUDGE_PIC = 12;
        public static final int ONLINEJUDGE_VIDEO = 13;

    }

    public static final class TYPE_ADAPTER {
        public static final int TYPE_LEADER = 0;
        public static final int TYPE_ORGAN = 1;
    }

    public static final class SEARCH_TYPE {
        public static final int GLOBAL = -1;//全局 flag=-1
        public static final int INFORMATION = 0;//经信资讯=(重要新闻 经信动态 区外动态 图片新闻 视频新闻)
        public static final int PUBLIC_NOTIFY = 1;//公开目录=(通知)
        public static final int PUBLIC_ANNOUNCE = 2;//公开目录=(通告)
        public static final int PUBLIC__REGULATION = 3;//公开制度
        public static final int PUBLIC_ANNALS = 4;//公开年报
        public static final int RESPONCE_CONCERN = 5;//回应关切
        public static final int SPECIAL_CHANNEL = 6;//经信专栏(只是搜三级新闻)
        public static final int Topic_Point = 7;//专题聚焦
        public static final int PIC_NEWS = 8;//图片新闻
        public static final int VIDEO_NEWS = 9;//视频新闻

    }

    public static final class NEWS_TYPE {
        /**
         * 全局
         */
        public static final int COMMON_ALL = -1;
        /**
         * 重要新闻
         */
        public static final int IMPORTANT_NEWS = 0;

        /**
         * 经信动态
         */
        public static final int JX_DYNMIC = 1;

        /**
         * 区外动态
         */
        public static final int QW_DYNAMIC = 2;

        /**
         * 图片新闻
         */
        public static final int PIC_NEWS = 3;

        /**
         * 视频新闻
         */
        public static final int VIDEO_NEWS = 4;

        /**
         * 通知
         */
        public static final int NOTIFICATION = 5;

        /**
         * 公告
         */
        public static final int ANNOUNCE = 6;

        /**
         * 经信头条
         */
        public static final int JX_TOP = 7;


    }

    public static final class ConfigConstants {
        private static final int MAX_HEAP_SIZE = (int) Runtime.getRuntime().maxMemory();

        public static final int MAX_DISK_CACHE_SIZE = 40 * ByteConstants.MB;
        public static final int MAX_MEMORY_CACHE_SIZE = MAX_HEAP_SIZE / 4;
        public static final int MAX_SMALL_DISK_VERYLOW_CACHE_SIZE = 5 * ByteConstants.MB;
        //小图极低磁盘空间缓存的最大值（特性：可将大量的小图放到额外放在另一个磁盘空间防止大图占用磁盘空间而删除了大量的小图）
        public static final int MAX_SMALL_DISK_LOW_CACHE_SIZE = 10 * ByteConstants.MB;
        //小图低磁盘空间缓存的最大值（特性：可将大量的小图放到额外放在另一个磁盘空间防止大图占用磁盘空间而删除了大量的小图）
        public static final int MAX_SMALL_DISK_CACHE_SIZE = 20 * ByteConstants.MB;
        //小图磁盘缓存的最大值（特性：可将大量的小图放到额外放在另一个磁盘空间防止大图占用磁盘空间而删除了大量的小图）

        public static final int MAX_DISK_CACHE_VERYLOW_SIZE = 10 * ByteConstants.MB;//默认图极低磁盘空间缓存的最大值
        public static final int MAX_DISK_CACHE_LOW_SIZE = 30 * ByteConstants.MB;//默认图低磁盘空间缓存的最大值


        public static final String IMAGE_PIPELINE_SMALL_CACHE_DIR = "imagepipeline_cache";//小图所放路径的文件夹名
        public static final String IMAGE_PIPELINE_CACHE_DIR = "imagepipeline_cache";//默认图所放路径的文件夹名
    }


}
